package com.zhq.blog.core.domain.system;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.zhq.blog.core.domain.BaseRepository;

public interface HelpRepository extends JpaRepository<Help,Long>, BaseRepository<Help>,JpaSpecificationExecutor<Help> {
	
	@Query("select b from Help b where deleted=0  order by id desc  ")
	Page<Help> findAll(Pageable pageable);

}
